import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component(resolve) {
        require(['@/view/Index'], resolve)
      }
    }, {
      path: '/bootstrapCard',
      component(resolve) {
        require(['@/components/BootstrapCard'], resolve)
      }
    }, {
      path: '/bootstrapInputGroup',
      component(resolve) {
        require(['@/components/BootstrapInputGroup'], resolve)
      }
    }, {
      path: '/weuiButton',
      component(resolve) {
        require(['@/components/WeuiButton'], resolve)
      }
    }, {
      path: '/weuiCell',
      component(resolve) {
        require(['@/components/WeuiCell'], resolve)
      }
    }
  ]
})
